const shopsDao=require('../dao/shopsDao');

// // 查找
module.exports.find =async function(searchObj,page){
    return await shopsDao.find(searchObj,page);//对象
}
// 不带分页查询
module.exports.findAll =async function(){
    return await shopsDao.findAll()
}
// 增加
module.exports.insert =async function(shops){
    return await shopsDao.insert(shops);//对象
}
// 删除
module.exports.remove =async function(id){
    return await shopsDao.remove(id);//对象
}
// 查id
module.exports.findById = async function(id){
    return await shopsDao.findById(id);//对象
}
// 修改
module.exports.update =async function(id,shops){
    return await shopsDao.update(id, shops);//对象
}
